package com.jxt.app.session;

import java.util.HashMap;  
import java.util.HashSet;  
import java.util.Map;  
import java.util.Set;  
   
public class SessionBean {  
   
		private Map<String,String> online=new HashMap();//在线  
		private int accessCount=0;//系统访问人数  
		private Set<String> login=new HashSet();//已经登录用户  
		   
		/** 
		* 返回当前系统在线人数 
		* @return int 
		*/  
		public int getOnlineCount(){  
		return this.getOnline().size();  
		}  
		   
		/** 
		* 返回当前系统登录人数 
		* @return int 
		*/  
		public int getLoginCount(){  
		return this.getLogin().size();  
		}  
		   
		public Map<String, String> getOnline() {  
		return online;  
		}  
		   
		public void setOnline(Map<String, String> online) {  
		this.online = online;  
		}  
		   
		public int getAccessCount() {  
		return accessCount;  
		}  
		   
		public void setAccessCount(int accessCount) {  
		this.accessCount = accessCount;  
		}  
		   
		public Set<String> getLogin() {  
		return login;  
		}  
		   
		public void setLogin(Set<String> login) {  
		this.login = login;  
		}  
		   
}  